package models

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Username string `gorm:"type:varchar(50)"`
	Password string `gorm:"type:varchar(50)"`
}
type Role struct {
	gorm.Model
	RoleName string `gorm:"type:varchar(50)"`
}
type Node struct {
	gorm.Model
	NodeName string `gorm:"type:varchar(50)"`
}
type UserRole struct {
	gorm.Model
	Uid int `gorm:"type:int"`
	Rid int `gorm:"type:int"`
}
type RoleNode struct {
	gorm.Model
	Nid int `gorm:"type:int"`
	Rid int `gorm:"type:int"`
}
type Good struct {
	gorm.Model
	GoodName  string `gorm:"type:varchar(50)"`
	GoodNum   string `gorm:"type:varchar(50)"`
	GoodPrice string `gorm:"type:varchar(50)"`
}
type Order struct {
	gorm.Model
	Gid          int    `gorm:"type:int"`
	Form_Address string `gorm:"type:varchar(50)"`
	To_Address   string `gorm:"type:varchar(50)"`
}
type OrderList struct {
	Oid          int
	Form_Address string
	To_Address   string
	GoodName     string
	GoodNum      string
	GoodPrice    string
}
